package com.allwayz.service.impl;

import com.allwayz.service.PaymentHystrixService;
import org.springframework.stereotype.Component;

/**
 * 解藕后，进行全局服务降级
 * @author allwayz
 */
@Component
public class PaymentHystrixServiceImpl implements PaymentHystrixService {
    @Override
    public String paymentInfoOk(Integer id)
    {
        return "Cloud Payment Service: paymentInfoOk -- Error";
    }

    @Override
    public String paymentInfoTimeOut(Integer id)
    {
        return "Cloud Payment Service: paymentInfoTimeout -- Error";
    }
}
